
<div class="col-lg-10 col-sm-10">
    <div class="radio radio-nice radio-inline">
        <input type="radio" name="sxj_type" id="sxj_type-0" value="0" {notempty name='$value.id'} {if condition="$value.sxj_type eq 0"}checked{/if} {else /}checked{/notempty}  >
        <label for="sxj_type-0">常规预定</label>
    </div>
    <div class="radio radio-nice radio-inline">
        <input type="radio" name="sxj_type" id="sxj_type-1" value="1" {notempty name='$value.id'}{if condition="$value.sxj_type eq 1"}checked{/if}{/notempty} >
        <label for="sxj_type-1">计划预定</label>
    </div>
    <div class="help-block"></div>
</div>



<div class="col-lg-10 col-sm-10">
    <div class="form-group" style=margin:0;{notempty name='$value.id'}{if condition="$value.sxj_type eq 1"}display:none;{/if}{/notempty} id='cg'>
        <label class="col-lg-1 control-label">开始时间(每日)</label>
        <div class="col-lg-3 col-sm-10">
            <input type="text" style="width: auto;" class="form-control" name="cg_ktime" id="cg_ktime" autocomplete="false" placeholder="8:30"  value="{notempty name='$value.id'}{$value.cg_ktime}{/notempty}">
            <div class="help-block"></div>
        </div>

        <label class="col-lg-1 control-label">结束时间</label>
        <div class="col-lg-3 col-sm-10">
            <input type="text" style="width: auto;" class="form-control" name="cg_jtime" id="cg_jtime" autocomplete="false" value="{notempty name='$value.id'}{$value.cg_jtime}{/notempty}" placeholder="11">
            <div class="help-block"></div>
        </div>
    </div>
    <div class="form-group" style=margin:0;{notempty name='$value.id'}{if condition="$value.sxj_type eq 0"}display:none;{/if}{/notempty} id='js' >
        <label class="col-lg-1 control-label">开始时间(日期)</label>
        <div class="col-lg-3 col-sm-10">
            <input type="text" style="width: auto;" class="form-control" name="jh_ktime" id="jh_ktime" autocomplete="false" value="{notempty name='$value.id'}{$value.jh_ktime}{/notempty}">
            <div class="help-block"></div>
        </div>

        <label class="col-lg-1 control-label">结束时间</label>
        <div class="col-lg-3 col-sm-10">
            <input type="text" style="width: auto;" class="form-control" name="jh_jtime" id="jh_jtime" autocomplete="false" value="{notempty name='$value.id'}{$value.jh_jtime}{/notempty}">
            <div class="help-block"></div>
        </div>
    </div>
</div>
<script>
$('#jh_ktime').fdatepicker({
	format: 'yyyy-mm-dd hh:ii',
	pickTime: true
});

$('#jh_jtime').fdatepicker({
	format: 'yyyy-mm-dd hh:ii',
	pickTime: true
});

$(function(){
  $('[name="sxj_type"]').click(function(){
    var val = $('[name="sxj_type"]:checked').val()


    if(val == 1){
      $('#js').show()
      $('#cg').hide()
    }else{
      $('#js').hide()
      $('#cg').show()
    }
  })

})
</script>
